package com.qkbb.admin.kuibu.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * Created by admin on 2016/3/2.
 */
public class LookAdapter extends FragmentStatePagerAdapter {
    List<Fragment> list;
    public LookAdapter(FragmentManager fm,List<Fragment> list) {
        super(fm);
        this.list=list;
    }



    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }
}
